<?php


namespace App\Http\Controllers\cms;


use App\Engine\BaseController;
use App\Models\TxRecourd as TxRecourdModel;
use function app\Utils\go;
use App\Models\InviteRecord as InviteRecordModel;

class TxRecourd extends BaseController
{
    /**
     * 获取提现记录
     */
    public function get_tx()
    {
        $res=TxRecourdModel::with('user')->orderBy('id','desc')->get();
        return go($res);
    }

    /**
     * 获取邀请记录
     */
    public function get_invite()
    {
        $res=InviteRecordModel::with(['user','agent'])->orderBy('id','desc')->get();
        return go($res);
    }
}
